/**
 * 
 */
package org.dse.html;

import java.util.Set;

/**
 * This interface provides methods a tag result container must implement.
 * 
 * At first, you can add a value associated with a tag name and a data structure
 * stores it. A tag usually have more than one result, so the data structure may
 * be set, list and so on. Secondly, you can get the results from the data
 * structure, giving a specific tag.
 * 
 * @author zhangchen
 * 
 */
public interface TagResultContainer {

	/**
	 * Add a value associated with a tag name. The value will be stored in the
	 * data structure.
	 * 
	 * @param tagName
	 *            the tag name
	 * @param value
	 *            the value associated with the tag name
	 */
	public void addResult(String tagName, String value);

	/**
	 * Get the results from the data structure.
	 * 
	 * @param tagName
	 *            the specific tag which the results associate with
	 * @return a Set containing the results
	 */
	public Set<String> getResult(String tagName);
}
